import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('../views/AboutView.vue')
    },
    {
      path:'/form',
      name:'form',
      component:() => import('../views/FormView.vue')
    },
    {
      path:'/rule',
      name:'rule',
      component:() => import('../views/RuleView.vue')
    },
    {
      path:'/login',
      name:'login',
      component:() => import('../views/LoginView.vue')
    },{
      path:'/table',
      name:'table',
      component:() => import('../views/TableView.vue')
    },{
      path:'/side',
      name:'side',
      component:() => import('../views/SideView.vue')
    }
  ]
})

export default router
